package com.library.books.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.library.books.domain.PrintRecord;
import com.library.books.domain.vo.print.PrintTimestampGroupRecordDetailVo;
import com.library.books.domain.vo.print.PrintTimestampGroupRecordVo;
import com.library.books.mapper.PrintRecordMapper;
import com.library.books.service.IPrintRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 打印记录Service业务层处理
 *
 * @author hb
 * @date 2024-11-21
 */
@Service
public class PrintRecordServiceImpl extends ServiceImpl<PrintRecordMapper, PrintRecord> implements IPrintRecordService
{


    /**
     * 查询打印记录列表
     *
     *
     * @param printRecord 打印记录
     * @return 打印记录
     */
    @Override
    public List<PrintRecord> selectPrintRecordList(PrintRecord printRecord) {
        return baseMapper.selectPrintRecordList(printRecord);
    }

    /**
     * 查询打印记录列表-时间戳分组
     *  - 以时间戳为准进行分组
     * @param printRecord 打印记录
     * @return 打印记录集合
     */
    @Override
    public List<PrintTimestampGroupRecordVo> selectPrintRecordByTimeGroupList(PrintTimestampGroupRecordVo printRecord) {
        return baseMapper.selectPrintRecordByTimeGroupList(printRecord);
    }

    /**
     * 查询打印记录列表-时间戳分组详情
     *  - 查询指定时间戳的列表（时间戳==参数时间戳）
     * @param printRecord 打印记录
     * @return 打印记录集合
     */
    @Override
    public List<PrintTimestampGroupRecordDetailVo> selectPrintRecordByTimeGroupDetailList(PrintTimestampGroupRecordDetailVo printRecord) {
        return baseMapper.selectPrintRecordByTimeGroupDetailList(printRecord);
    }

}
